java tricky interview question